<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// Pasting particular snippet of HTML containing list items and a link creates
// too many list items.
selection_test(
    [
        '<div contenteditable>',
            '<ul style="text-align:right;"><li>^A</li></ul>',
            '<div><ul>',
            '<li><a>B</a><br>C</li>|',
            '</ul></div>',
        '</div>',
    ],
    selection => {
        selection.document.execCommand('copy');
        selection.document.execCommand('paste');
    },
    [
        '<div contenteditable>',
            '<ul style="text-align:right;">',
              '<li>A</li>',
              '<div style="text-align: start;"><ul>',
              '<li><a>B</a><br>C|</li>',
              '</ul></div>',
            '</ul>',
        '</div>',
    ]);
</script>
